package com.java.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.env.Environment;

import java.io.Serializable;

/**
 * @Author: ZhangJin
 * @Date: 2020/9/21 13:19
 */


@Configuration
public class IpConfig implements Serializable {

    @Value("${Hdfs.Ip}")
    private String ip;

    @Value("${Hdfs.Port}")
    private String port;

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getPort() {
        return port;
    }

    public void setPort(String port) {
        this.port = port;
    }

}
